package com.yonyougov.devops.cruxcisupport.deployhistory.enums;

import com.yonyougov.devops.cruxcisupport.enums.BaseEnum;
import lombok.Getter;

/**
 * 提测类型
 */
@Getter
public enum DeployHisOperationTypeEnum implements BaseEnum {
    DEPLOY("部署", 1), KILL("kill", 2),
    ;


    private String value;
    private int code;

    DeployHisOperationTypeEnum(String value, int code) {
        this.value = value;
        this.code = code;
    }

    @Override
    public boolean equals(Integer code) {
        return code.equals(this.code);
    }
}
